﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
using EnCor.ObjectBuilder;

namespace EnCor.Logging
{
    public class LogAppenderConfig : Config.NameTypeConfigElement, IAssembler<ILogAppender, LogAppenderConfig>
    {

        #region IAssembler<ILogAppender,LogAppenderConfig> Members

        public virtual ILogAppender Assemble(IBuilderContext context, LogAppenderConfig objectConfiguration)
        {
            ILogAppender appender = (ILogAppender)Activator.CreateInstance(objectConfiguration.Type);
            return appender;
        }

        #endregion
    }
}
